package app.common.dao;
import java.util.ArrayList;
import java.util.List;
import cn.lily.com.container.data.Record;
import cn.lily.com.exception.YaconException;
import cn.lily.esb.framework.drivers.db.bean.ControlDAO;
public class Leo_cg_infoBean extends ControlDAO implements Cloneable {
	private static final long serialVersionUID = 1L;
	public Leo_cg_infoBean() throws YaconException {
		super();
		setTableName("LEO_CG_INFO");
	}
	String  fgame_lang;
	String  fgame_name_plus;
	String  fgame_first;
	String  fgeme_memo;
	String  fgame_store_path;
	String  fgame_size;
	String  fres_id;
	String  fgame_id;
	String  fgame_size_num;
	String  fgame_tags;
	String  fgame_factory;
	String  fgame_typ;
	String  fgame_intru;
	String  fdisk_id;
	String  fgame_visual;
	String  fgame_name;
	String  fgame_pro_time;
	String  fgame_cre_time;

	public void setGame_lang( String game_lang)throws YaconException{
		setFieldData("game_lang",game_lang,TEXT);
		this.fgame_lang=game_lang;
	}

	public String getGame_lang(){
		if ( this.fgame_lang == null){
			return "";
		}
		else {
			return this.fgame_lang;
		}
	}

	public void setGame_name_plus( String game_name_plus)throws YaconException{
		setFieldData("game_name_plus",game_name_plus,TEXT);
		this.fgame_name_plus=game_name_plus;
	}

	public String getGame_name_plus(){
		if ( this.fgame_name_plus == null){
			return "";
		}
		else {
			return this.fgame_name_plus;
		}
	}

	public void setGame_first( String game_first)throws YaconException{
		setFieldData("game_first",game_first,TEXT);
		this.fgame_first=game_first;
	}

	public String getGame_first(){
		if ( this.fgame_first == null){
			return "";
		}
		else {
			return this.fgame_first;
		}
	}

	public void setGeme_memo( String geme_memo)throws YaconException{
		setFieldData("geme_memo",geme_memo,TEXT);
		this.fgeme_memo=geme_memo;
	}

	public String getGeme_memo(){
		if ( this.fgeme_memo == null){
			return "";
		}
		else {
			return this.fgeme_memo;
		}
	}

	public void setGame_store_path( String game_store_path)throws YaconException{
		setFieldData("game_store_path",game_store_path,TEXT);
		this.fgame_store_path=game_store_path;
	}

	public String getGame_store_path(){
		if ( this.fgame_store_path == null){
			return "";
		}
		else {
			return this.fgame_store_path;
		}
	}

	public void setGame_size( String game_size)throws YaconException{
		setFieldData("game_size",game_size,TEXT);
		this.fgame_size=game_size;
	}

	public String getGame_size(){
		if ( this.fgame_size == null){
			return "";
		}
		else {
			return this.fgame_size;
		}
	}

	public void setRes_id( String res_id)throws YaconException{
		setFieldData("res_id",res_id,TEXT);
		this.fres_id=res_id;
	}

	public String getRes_id(){
		if ( this.fres_id == null){
			return "";
		}
		else {
			return this.fres_id;
		}
	}

	public void setGame_id( String game_id)throws YaconException{
		setFieldData("game_id",game_id,TEXT);
		this.fgame_id=game_id;
	}

	public String getGame_id(){
		if ( this.fgame_id == null){
			return "";
		}
		else {
			return this.fgame_id;
		}
	}

	public void setGame_size_num( String game_size_num)throws YaconException{
		setFieldData("game_size_num",game_size_num,TEXT);
		this.fgame_size_num=game_size_num;
	}

	public String getGame_size_num(){
		if ( this.fgame_size_num == null){
			return "";
		}
		else {
			return this.fgame_size_num;
		}
	}

	public void setGame_tags( String game_tags)throws YaconException{
		setFieldData("game_tags",game_tags,TEXT);
		this.fgame_tags=game_tags;
	}

	public String getGame_tags(){
		if ( this.fgame_tags == null){
			return "";
		}
		else {
			return this.fgame_tags;
		}
	}

	public void setGame_factory( String game_factory)throws YaconException{
		setFieldData("game_factory",game_factory,TEXT);
		this.fgame_factory=game_factory;
	}

	public String getGame_factory(){
		if ( this.fgame_factory == null){
			return "";
		}
		else {
			return this.fgame_factory;
		}
	}

	public void setGame_typ( String game_typ)throws YaconException{
		setFieldData("game_typ",game_typ,TEXT);
		this.fgame_typ=game_typ;
	}

	public String getGame_typ(){
		if ( this.fgame_typ == null){
			return "";
		}
		else {
			return this.fgame_typ;
		}
	}

	public void setGame_intru( String game_intru)throws YaconException{
		setFieldData("game_intru",game_intru,TEXT);
		this.fgame_intru=game_intru;
	}

	public String getGame_intru(){
		if ( this.fgame_intru == null){
			return "";
		}
		else {
			return this.fgame_intru;
		}
	}

	public void setDisk_id( String disk_id)throws YaconException{
		setFieldData("disk_id",disk_id,TEXT);
		this.fdisk_id=disk_id;
	}

	public String getDisk_id(){
		if ( this.fdisk_id == null){
			return "";
		}
		else {
			return this.fdisk_id;
		}
	}

	public void setGame_visual( String game_visual)throws YaconException{
		setFieldData("game_visual",game_visual,TEXT);
		this.fgame_visual=game_visual;
	}

	public String getGame_visual(){
		if ( this.fgame_visual == null){
			return "";
		}
		else {
			return this.fgame_visual;
		}
	}

	public void setGame_name( String game_name)throws YaconException{
		setFieldData("game_name",game_name,TEXT);
		this.fgame_name=game_name;
	}

	public String getGame_name(){
		if ( this.fgame_name == null){
			return "";
		}
		else {
			return this.fgame_name;
		}
	}

	public void setGame_pro_time( String game_pro_time)throws YaconException{
		setFieldData("game_pro_time",game_pro_time,DATE);
		this.fgame_pro_time=game_pro_time;
	}

	public String getGame_pro_time(){
		if ( this.fgame_pro_time == null){
			return "";
		}
		else {
			return this.fgame_pro_time;
		}
	}

	public void setGame_cre_time( String game_cre_time)throws YaconException{
		setFieldData("game_cre_time",game_cre_time,DATE);
		this.fgame_cre_time=game_cre_time;
	}

	public String getGame_cre_time(){
		if ( this.fgame_cre_time == null){
			return "";
		}
		else {
			return this.fgame_cre_time;
		}
	}

	public  List<Leo_cg_infoBean> findListBeans(String sSqlWhere)throws YaconException {
		List<Leo_cg_infoBean> listBeans = new ArrayList<Leo_cg_infoBean>();
		findTable = findTableByWhere(sSqlWhere);
		while (findTable.next())
		{
			Leo_cg_infoBean fDaoBean  = new Leo_cg_infoBean();
			fDaoBean.fgame_lang = findTable.getString("game_lang");
			fDaoBean.fgame_name_plus = findTable.getString("game_name_plus");
			fDaoBean.fgame_first = findTable.getString("game_first");
			fDaoBean.fgeme_memo = findTable.getString("geme_memo");
			fDaoBean.fgame_store_path = findTable.getString("game_store_path");
			fDaoBean.fgame_size = findTable.getString("game_size");
			fDaoBean.fres_id = findTable.getString("res_id");
			fDaoBean.fgame_id = findTable.getString("game_id");
			fDaoBean.fgame_size_num = findTable.getString("game_size_num");
			fDaoBean.fgame_tags = findTable.getString("game_tags");
			fDaoBean.fgame_factory = findTable.getString("game_factory");
			fDaoBean.fgame_typ = findTable.getString("game_typ");
			fDaoBean.fgame_intru = findTable.getString("game_intru");
			fDaoBean.fdisk_id = findTable.getString("disk_id");
			fDaoBean.fgame_visual = findTable.getString("game_visual");
			fDaoBean.fgame_name = findTable.getString("game_name");
			fDaoBean.fgame_pro_time = findTable.getString("game_pro_time");
			fDaoBean.fgame_cre_time = findTable.getString("game_cre_time");
			fDaoBean.operate_mode = "edit";
			listBeans.add(fDaoBean);
		}
		return listBeans;
	}

	public Leo_cg_infoBean findBean(String sSqlWhere)throws YaconException {
		findTable = findTableByWhere(sSqlWhere);
		if (findTable.next())
		{
			Leo_cg_infoBean fDaoBean  = new Leo_cg_infoBean();
			fDaoBean.fgame_lang = findTable.getString("game_lang");
			fDaoBean.fgame_name_plus = findTable.getString("game_name_plus");
			fDaoBean.fgame_first = findTable.getString("game_first");
			fDaoBean.fgeme_memo = findTable.getString("geme_memo");
			fDaoBean.fgame_store_path = findTable.getString("game_store_path");
			fDaoBean.fgame_size = findTable.getString("game_size");
			fDaoBean.fres_id = findTable.getString("res_id");
			fDaoBean.fgame_id = findTable.getString("game_id");
			fDaoBean.fgame_size_num = findTable.getString("game_size_num");
			fDaoBean.fgame_tags = findTable.getString("game_tags");
			fDaoBean.fgame_factory = findTable.getString("game_factory");
			fDaoBean.fgame_typ = findTable.getString("game_typ");
			fDaoBean.fgame_intru = findTable.getString("game_intru");
			fDaoBean.fdisk_id = findTable.getString("disk_id");
			fDaoBean.fgame_visual = findTable.getString("game_visual");
			fDaoBean.fgame_name = findTable.getString("game_name");
			fDaoBean.fgame_pro_time = findTable.getString("game_pro_time");
			fDaoBean.fgame_cre_time = findTable.getString("game_cre_time");
			fDaoBean.operate_mode = "edit";
			return fDaoBean;
		}else
			return null;
	}

	public void setViewRecord(Record viewRecord) throws YaconException{
		if (viewRecord.getString("game_lang") != null)
			setGame_lang(viewRecord.getString("game_lang"));
		if (viewRecord.getString("game_name_plus") != null)
			setGame_name_plus(viewRecord.getString("game_name_plus"));
		if (viewRecord.getString("game_first") != null)
			setGame_first(viewRecord.getString("game_first"));
		if (viewRecord.getString("geme_memo") != null)
			setGeme_memo(viewRecord.getString("geme_memo"));
		if (viewRecord.getString("game_store_path") != null)
			setGame_store_path(viewRecord.getString("game_store_path"));
		if (viewRecord.getString("game_size") != null)
			setGame_size(viewRecord.getString("game_size"));
		if (viewRecord.getString("res_id") != null)
			setRes_id(viewRecord.getString("res_id"));
		if (viewRecord.getString("game_id") != null)
			setGame_id(viewRecord.getString("game_id"));
		if (viewRecord.getString("game_size_num") != null)
			setGame_size_num(viewRecord.getString("game_size_num"));
		if (viewRecord.getString("game_tags") != null)
			setGame_tags(viewRecord.getString("game_tags"));
		if (viewRecord.getString("game_factory") != null)
			setGame_factory(viewRecord.getString("game_factory"));
		if (viewRecord.getString("game_typ") != null)
			setGame_typ(viewRecord.getString("game_typ"));
		if (viewRecord.getString("game_intru") != null)
			setGame_intru(viewRecord.getString("game_intru"));
		if (viewRecord.getString("disk_id") != null)
			setDisk_id(viewRecord.getString("disk_id"));
		if (viewRecord.getString("game_visual") != null)
			setGame_visual(viewRecord.getString("game_visual"));
		if (viewRecord.getString("game_name") != null)
			setGame_name(viewRecord.getString("game_name"));
		if (viewRecord.getString("game_pro_time") != null)
			setGame_pro_time(viewRecord.getString("game_pro_time"));
		if (viewRecord.getString("game_cre_time") != null)
			setGame_cre_time(viewRecord.getString("game_cre_time"));
	}

}
